#pragma once

#include "fxcc/core/graph/common/pch.h"

namespace fxcc
{
	namespace graph
	{
		namespace common
		{
			struct FXCC_API  TextLine
			{
				std::string m_Text{};

				// it means file path
				std::string m_FontFamily;
				glm::vec2 m_Pos{ 0,0 };
				glm::vec4 m_TextColor{ 0.0f,0.f,0.f,1.0f };
				glm::vec2 m_LimitSize{};
				float m_Scale{ 1.0f };

				int m_FontSize{ 17 };
				bool m_UseLimit{ false };

				static std::string to_string_with_precision(double value, int precision = 2) {
					std::ostringstream out;
					out << std::fixed << std::setprecision(precision) << value;
					return out.str();
				}
			};
		}
	}
}